package com.yanqu.road.server.cmd.union.cross.honors;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.union.cross.CrossUnionHonorsProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_UNION_GET_UNION_HISTORY_UNION_NAMES, desc = "获取历史荣誉-参与商会名单")
public class UnionHistoryHonorsRecordUnionDetailCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        CrossUnionHonorsProto.UnionHistoryHonorsRecordUnionDetailReqMsg reqMsg = CrossUnionHonorsProto.UnionHistoryHonorsRecordUnionDetailReqMsg.parseFrom(packet.getBytes());
        player.sendPacket(Protocol.C_UNION_GET_UNION_HISTORY_UNION_NAMES, reqMsg.toBuilder());
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
